package com.netease.j;

import android.os.Build.VERSION;
import com.netease.pris.a.i;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;

public class e
{
  public static int a()
  {
    try
    {
      int j = Integer.valueOf(Build.VERSION.SDK).intValue();
      i = j;
      return i;
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
        int i = 5;
    }
  }

  public static long a(String paramString)
  {
    return i.c(paramString);
  }

  public static InputStream a(InputStream paramInputStream)
  {
    return new GZIPInputStream(paramInputStream);
  }

  public static byte[] a(byte[] paramArrayOfByte)
  {
    GZIPInputStream localGZIPInputStream = new GZIPInputStream(new ByteArrayInputStream(paramArrayOfByte));
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    byte[] arrayOfByte = new byte[8192];
    while (true)
    {
      int i = localGZIPInputStream.read(arrayOfByte);
      if (i <= 0)
        break;
      localByteArrayOutputStream.write(arrayOfByte, 0, i);
    }
    return localByteArrayOutputStream.toByteArray();
  }

  public static byte[] b(byte[] paramArrayOfByte)
  {
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    GZIPOutputStream localGZIPOutputStream = new GZIPOutputStream(localByteArrayOutputStream);
    localGZIPOutputStream.write(paramArrayOfByte, 0, paramArrayOfByte.length);
    localGZIPOutputStream.finish();
    return localByteArrayOutputStream.toByteArray();
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.j.e
 * JD-Core Version:    0.6.0
 */